package com;

public class aaa {
    public static void main(String[] args) {
        String str = "000AB";
        Integer in = Integer.valueOf(str,16);
        System.out.println(in);
        String st = Integer.toHexString(in).toUpperCase();
        System.out.println(st);
        System.out.println(st);
        st = String.format("%5s",st);
        st= st.replaceAll(" ","0");
        System.out.println(st);
    }
}
